package com.neusoft.bean;

import java.util.Date;
import java.util.List;

public class OrdersBean {
    private Integer id;

    private Integer userid;

    private String orderid;

    private Date createtime;

    private String note;

    // 完成一对一的映射处理（组合关系：实体类OrdersBean组合了实体类UserBean）
    private UserBean user;    
    
    // 完成一对多的映射
    private List<OrderdetailBean> orderdetails;    
    
    public List<OrderdetailBean> getOrderdetails() {
		return orderdetails;
	}

	public void setOrderdetails(List<OrderdetailBean> orderdetails) {
		this.orderdetails = orderdetails;
	}

	public UserBean getUser() {
		return user;
	}

	public void setUser(UserBean user) {
		this.user = user;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid == null ? null : orderid.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

	@Override
	public String toString() {
		return "OrdersBean [id=" + id + ", userid=" + userid + ", orderid=" + orderid + ", createtime=" + createtime
				+ ", note=" + note + ", user=" + user + ", orderdetails=" + orderdetails + "]";
	}

	
    
    
}